import datetime
from time import strftime
def get_current_mon_sun():

    now=datetime.datetime.now()
    print(now)
    date_week = now.strftime('%Y%m%d %A')
    week = date_week[9::]
    week_dict ={'Monday':0,'Tuesday':1,'Wednesday':2,'Thursday':3,'Friday':4,'Saturday':5,'Sunday':6}
    monday = (now+datetime.timedelta(days=-week_dict[week]-16))
    sunday = monday+datetime.timedelta(days=+6)
    current_week_1=monday.strftime("%Y%m%d")
    current_week_2=sunday.strftime("%Y%m%d")
    print(week)
    print(current_week_1)
    print(current_week_2)
    return current_week_1+'-'+current_week_2

def get_current_day():
    now=datetime.datetime.now()
    print(now)
    curr_day = (now+datetime.timedelta(days=-2)).strftime("%Y%m%d")

    return curr_day


def get_current_season():
    current_date = datetime.datetime.now()
    current_month = current_date.month

    if current_month in [1, 2, 3]:
        current_quarter = 1
    elif current_month in [4, 5, 6]:
        current_quarter = 2
    elif current_month in [7, 8, 9]:
        current_quarter = 3
    else:
        current_quarter = 4

    return str(current_quarter-2)
